<?php

namespace models;

use libs\registry as Registry;

class stronyModel extends \libs\model{
    
    private $_tabela = 'strony';
    private $_newsid = 1;
    
    /**
     * @route=()
     */
    public function index() 
    {
        $db = Registry::get('database');
        
        $news = $db->get_where($this->_tabela,array('id'=>$this->_newsid));
        
        return array('news'=>$news);
    }
    
    
}

?>
